package com.lannuokeji.biz.ac.controller;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.lannuokeji.base.AController;
import com.lannuokeji.biz.ac.entity.Department;
import com.lannuokeji.biz.ac.entity.Role;
import com.lannuokeji.biz.ac.service.RoleService;

import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 角色表 前端控制器
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-17
 */
@RestController
@RequestMapping("/ac/role")
public class RoleController extends AController {

	@Resource
	RoleService roleService;
	
	@ApiOperation(value = "查询列表")
	@GetMapping()
	public Object getList() {
		List<Role> l = roleService.selectList(new EntityWrapper<>());
		return setSuccessContent(l);
	}
}

